{% extends 'base.html' %}
{% block title %}登陆{% endblock %}
{% block content %}
    {% if user.is_authenticated %}
    <h3>您已登陆</h3>
    {% else %}
        <h3>登陆</h3>
        {% if form.errors %}
            Your username and password didn't match. Please try again.
        {% endif %}
            <form method="post" enctype="multipart/form-data">
            {% csrf_token %}
                {{ form.as_p }}
            <input type="submit" value="登陆" />
{#            <input type="hidden" value="{{ next }}" />#}
        </form>

    {% endif %}
{% endblock %}